package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.GetStaffResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  获取系统人员接口
* */


public class GetStaffApi extends AbsRequest<GetStaffApi.GetStaffParams, GetStaffResult[]> {

    public GetStaffApi(GetStaffParams getStaffParams, Listener<GetStaffResult[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getUserStaffUrl(), getStaffParams, listener, errorListener, GetStaffResult[].class);
    }

    public static class GetStaffParams extends BaseParams {
        public GetStaffParams(String role) {
            put("ROLE_CODE", role);
        }

        public GetStaffParams(String role,String orderType) {
            put("ROLE_CODE", role);
            put("ORDER_TYPE", orderType);
        }
    }


}
